﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using StuertzDatenbank;

namespace StuertzDatenbank
{
    public class Country
    {
        private int CountryID;
        private string Countryname;
        

        public Country(int p)
        {
            
            this.CountryID = p;
        }

        public Country()
        {
            
        }

        /// <summary>
        /// setzt die ID des Landes
        /// </summary>
        /// <param name="i"></param>
        public void setID(int i)
        {
            if (i == -1)
            {
                Console.WriteLine("Error: ID muss noch festgelegt werden");
            }
            else
            {
                this.CountryID = i;
            }

        }

        /// <summary>
        /// gibt die ID des Landes wieder
        /// </summary>
        /// <returns></returns>
        public int getID()
        {
            return this.CountryID;
        }

        /// <summary>
        /// setzt das Land
        /// </summary>
        /// <param name="input"></param>
        public void setCountry(string input)
        {
            this.Countryname = input;
        }

        /// <summary>
        /// gibt das Land wieder
        /// </summary>
        /// <returns></returns>
        public string getCountry()
        {
            return this.Countryname;
        }

    }
}
